//
//  ZCommentHeader.h
//  WeClubs
//
//  Created by Zed Link on 11/4/2017.
//  Copyright © 2017 Zed. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    ZTableHeaderStyleComment = 0,        // 评论界面样式
    ZTableHeaderStyleDetail,     // 详情界面样式
    ZTableHeaderStyleSetting,       // 设置界面样式
    ZTableHeaderStyleAdd        // 添加新Cell样式
} ZTableHeaderStyle;

typedef enum : NSUInteger {
    ZTableHeaderAlignmentTop,
    ZTableHeaderAlignmentCenter,
    ZTableHeaderAlignmentFill,
} ZTableHeaderAlignment;

#define SETTING_STYLE_HEIGHT 48

@class ZCommentHeader;
@protocol ZCommentHeaderDelegate <NSObject>

- (void)commentHeader:(ZCommentHeader *)header didSelected:(UIButton *)sender;

@end

@interface ZCommentHeader : UITableViewHeaderFooterView

/** 标题按钮 */
@property (strong, nonatomic, readonly) UIButton *descriptionBtn;

/** 分割线, 默认不加载 */
@property (strong, nonatomic, readonly) UIView *separator;

/** 显示样式 */
@property (assign, nonatomic) ZTableHeaderStyle style;

/** 位置样式 */
@property (assign, nonatomic) ZTableHeaderAlignment alignment;

/** 代理 */
@property (weak, nonatomic) id<ZCommentHeaderDelegate> delegate;


//全选 默认隐藏
@property(nonatomic)UIButton *allSelBtn;

- (void)zSetTitle:(NSString *)title;
- (void)zSetTitle:(NSString *)title andImage:(NSString *)imageName;
- (void)zSetAttributeTitle:(NSAttributedString *)title andImage:(NSString *)imageName;

- (void)zSetBackgroundColor:(UIColor *)backgroundColor;

@end
